home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: A simple question for all the C++ gurus out there!
- Date: 15 Feb 1996 02:26:28 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4fu5kk$5b7@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe7.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Feb 13, 1996 20:49:35 in article <A simple question for all the C++
- gurus out there!>, '"Abe L. Getchell" <panther@iglou.com>' wrote:
-
-
- >I am trying to write a public member function that will use a private
- >data member from which it inherited from the base class. This won't
- compile.
- >It gives me an error message like "A::a private data member not accessible
- in
- >class B". Why won't this work if the prvate data member being inherited
- from
- >the base class A be a private data member of the derived class?
- >
- 'Cause that's what private is. The behavior you want is
- obtainable by the use of protected access.
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-